- index = local_assigns.fetch(:index, nil)
- milestone = local_assigns.fetch(:result, nil)
- position = index + 1

.search-result-row
  = link_to project_milestone_path(milestone.project, milestone), class: 'gl-font-bold', data: { event_tracking: 'click_search_result', event_label: @scope, event_value: position } do
    %span.term.str-truncated= simple_search_highlight_and_truncate(milestone.title, @search_term)

  - if milestone.project_milestone?
    .gl-mt-2.gl-text-subtle.gl-whitespace-normal.gl-text-left.gl-text-sm= milestone.project.full_name

  - if milestone.description.present?
    .description.term
      = search_md_sanitize(milestone.description)
